var dirImg = "res/images/";
var dirCCBI = "res/ccbi/";
var dirMusic = "res/sound/";
var dirLevel = "res/level/";
var dirI18n = "res/i18n/";

var s_back_to_menu_button = dirImg + "back_to_menu_button.png";
var s_back_to_menu_button_pressed = dirImg + "back_to_menu_button_pressed.png";
var s_BackButtonPressed = dirImg + "BackButtonPressed.png";
var s_bg = dirImg + "bg.png";
var s_GgGame = dirImg + "bg_game.png";
var s_BookBg = dirImg + "BookBg.png";
var s_BookCover = dirImg + "BookCover.png";
var s_BoxBg = dirImg + "BoxBg.png";
var s_button_add_shop = dirImg + "button_add_shop.png";
var s_button_add_shop_pressed = dirImg + "button_add_shop_pressed.png";
var s_button_pencile_11 = dirImg + "button_pencile_11.png";
var s_button_pencile_12 = dirImg + "button_pencile_12.png";
var s_button_pencile_21 = dirImg + "button_pencile_21.png";
var s_button_pencile_22 = dirImg + "button_pencile_22.png";
var s_button_pencile_31 = dirImg + "button_pencile_31.png";
var s_button_pencile_32 = dirImg + "button_pencile_32.png";
var s_button_pencile_41 = dirImg + "button_pencile_41.png";
var s_button_pencile_42 = dirImg + "button_pencile_42.png";
var s_buy_button = dirImg + "buy_button.png";
var s_buy_button_pressed = dirImg + "buy_button_pressed.png";
var s_CoverButton = dirImg + "CoverButton.png";
var s_CoverButtonPressed = dirImg + "CoverButtonPressed.png";
var s_start = dirImg + "Default@2x.png";
var s_dreamingame = dirImg + "dreamingame.png";
var s_GameOverBg = dirImg + "GameOverBg.png";
var s_gem0 = dirImg + "gem0.png";
var s_gem1 = dirImg + "gem1.png";
var s_gem2 = dirImg + "gem2.png";
var s_gem3 = dirImg + "gem3.png";
var s_gem4 = dirImg + "gem4.png";
var s_gem5 = dirImg + "gem5.png";
var s_GoMenuButton = dirImg + "GoMenuButton.png";
var s_GoMenuButtonPressed = dirImg + "GoMenuButtonPressed.png";
var s_language_arabic = dirImg + "language_arabic.png";
var s_language_arabic_pressed = dirImg + "language_arabic_pressed.png";
var s_language_button = dirImg + "language_button.png";
var s_language_button_pressed = dirImg + "language_button_pressed.png";
var s_language_button2 = dirImg + "language_button2.png";
var s_language_button2_pressed = dirImg + "language_button2_pressed.png";
var s_language_button3 = dirImg + "language_button3.png";
var s_language_button3_pressed = dirImg + "language_button3_pressed.png";
var s_language_button4 = dirImg + "language_button4.png";
var s_language_button4_pressed = dirImg + "language_button4_pressed.png";
var s_language_button5 = dirImg + "language_button5.png";
var s_language_button5_pressed = dirImg + "language_button5_pressed.png";
var s_LevelButton = dirImg + "LevelButton.png";
var s_LevelButtonPressed = dirImg + "LevelButtonPressed.png";
var s_LevelButtonDisabled = dirImg + "LevelButtonDisabled.png";
var s_LevelButtonLocked = dirImg + "LevelButton_locked.png";
var s_LevelTag = dirImg + "LevelTag.png";
var s_light = dirImg + "light.png";
var s_logo = dirImg + "Logo.png";
var s_logoCh = dirImg + "logo_ch.png";
var s_lose_Bg = dirImg + "lose_Bg.png";
var s_MenuButton = dirImg + "MenuButton.png";
var s_MenuButtonPressed = dirImg + "MenuButtonPressed.png";
var s_MusicButton = dirImg + "MusicButton.png";
var s_MusicButtonPressed = dirImg + "MusicButtonPressed.png";
var s_MusicButtonOff = dirImg + "MusicButtonOff.png";
var s_MusicOffButtonPressed = dirImg + "MusicOffButtonPressed.png";
var s_new = dirImg + "new.png";
var s_NextButton = dirImg + "NextButton.png";
var s_NextButtonPressed = dirImg + "NextButtonPressed.png";
var s_NextLevelButton = dirImg + "NextLevelButton.png";
var s_NextLevelButtonPressed = dirImg + "NextLevelButtonPressed.png";
var s_note_paper_price = dirImg + "note_paper_price.png";
var s_Note_paper_shop = dirImg + "Note_paper_shop.png";
var s_note_start = dirImg + "note_start.png";
var s_note_start_pressed = dirImg + "note_start_pressed.png";
var s_Pan1 = dirImg + "Pan1.png";
var s_Pan2 = dirImg + "Pan2.png";
var s_Pan3 = dirImg + "Pan3.png";
var s_Pan4 = dirImg + "Pan4.png";
var s_pause_button = dirImg + "pause_button.png";
var s_pause_button_pressed = dirImg + "pause_button_pressed.png";
var s_Pencil_shavings = dirImg + "Pencil_shavings.png";
var s_ResetButton = dirImg + "ResetButton.png";
var s_ResetButton2 = dirImg + "ResetButton2.png";
var s_ResetButton2_pressed = dirImg + "ResetButton2_pressed.png";
var s_ResetButtonPressed = dirImg + "ResetButtonPressed.png";
var s_setting_button = dirImg + "setting_button.png";
var s_setting_button_pressed = dirImg + "setting_button_pressed.png";
var s_shop_bg_paper = dirImg + "shop_bg_paper.png";
var s_TimeTag = dirImg + "TimeTag.png";
var s_TitleBg = dirImg + "TitleBg.png";
var s_tutorial_button = dirImg + "tutorial_button.png";
var s_tutorial_button_pressed = dirImg + "tutorial_button_pressed.png";
var s_WaitIcon = dirImg + "WaitIcon.png";
var s_win_Bg = dirImg + "win_Bg.png.png";

var s_logo_ccbi = dirCCBI + "logo.ccbi";
var s_mainMenu_ccbi = dirCCBI + "new-mainmenu.ccbi";
var s_mainMenuRing_ccbi = dirCCBI + "mainmenu_ring.ccbi";
var s_selectLevel_ccbi = dirCCBI + "new-selectlevel.ccbi";
var s_level_ccbi = dirCCBI + "new-level.ccbi";
var s_pauseRing_ccbi = dirCCBI + "pause_ring.ccbi";
var s_levelWin_ccbi = dirCCBI + "new-level_win.ccbi";
var s_levelFail_ccbi = dirCCBI + "new-level_fail.ccbi";
var s_levelEnd_ccbi = dirCCBI + "new-level_end.ccbi";

var s_bgMusic_mp3 = dirMusic + "bg.mp3";
var s_buttonEffect_wav = dirMusic + "button.wav";
var s_failEffect_wav = dirMusic + "fail.wav";
var s_fillEffect_wav = dirMusic + "fill.wav";
var s_successEffect_wav = dirMusic + "success.wav";
var s_cheersEffect_wav = dirMusic + "cheers.wav";

var s_FontEng = dirImg + "FontEng_0.png";
var s_FontEng_fnt = dirImg + "FontEng.fnt";

var level_png = function(i){
    return dirLevel + "lv_" + i + ".png";
}
var level_pda = function(i){
    return dirLevel + "b_lv_" + i + ".pda";
}

var language_button = function(i, press){
    var btns = ['language_button.png', 'language_button2.png', 'language_button5.png', 'language_button4.png', 'language_button3.png', 'language_arabic.png']
    var btns_p = ['language_button_pressed.png', 'language_button2_pressed.png', 'language_button5_pressed.png', 'language_button4_pressed.png', 'language_button3_pressed.png', 'language_arabic_pressed.png']
    if (press) {
        return dirImg + btns_p[i];
    } else {
        return dirImg + btns[i];
    }
}

var g_resources = [//image
{
    src: s_back_to_menu_button
}, {
    src: s_back_to_menu_button_pressed
}, {
    src: s_BackButtonPressed
}, {
    src: s_bg
}, {
    src: s_GgGame
}, {
    src: s_BookBg
}, {
    src: s_BookCover
}, {
    src: s_BoxBg
}, {
    src: s_button_add_shop
}, {
    src: s_button_add_shop_pressed
}, {
    src: s_button_pencile_11
}, {
    src: s_button_pencile_12
}, {
    src: s_button_pencile_21
}, {
    src: s_button_pencile_22
}, {
    src: s_button_pencile_31
}, {
    src: s_button_pencile_32
}, {
    src: s_button_pencile_41
}, {
    src: s_button_pencile_42
}, {
    src: s_buy_button
}, {
    src: s_buy_button_pressed
}, {
    src: s_CoverButton
}, {
    src: s_CoverButtonPressed
}, {
    src: s_start
}, {
    src: s_dreamingame
}, {
    src: s_GameOverBg
}, {
    src: s_gem0
}, {
    src: s_gem1
}, {
    src: s_gem2
}, {
    src: s_gem3
}, {
    src: s_gem4
}, {
    src: s_gem5
}, {
    src: s_GoMenuButton
}, {
    src: s_GoMenuButtonPressed
}, {
    src: s_language_arabic
}, {
    src: s_language_arabic_pressed
}, {
    src: s_language_button
}, {
    src: s_language_button_pressed
}, {
    src: s_language_button2
}, {
    src: s_language_button2_pressed
}, {
    src: s_language_button3
}, {
    src: s_language_button3_pressed
}, {
    src: s_language_button4
}, {
    src: s_language_button4_pressed
}, {
    src: s_language_button5
}, {
    src: s_language_button5_pressed
}, {
    src: s_LevelButton
}, {
    src: s_LevelButtonPressed
}, {
    src: s_LevelButtonDisabled
}, {
    src: s_LevelButtonLocked
}, {
    src: s_LevelTag
}, {
    src: s_light
}, {
    src: s_logo
}, {
    src: s_logoCh
}, {
    src: s_lose_Bg
}, {
    src: s_MenuButton
}, {
    src: s_MenuButtonPressed
}, {
    src: s_MusicButton
}, {
    src: s_MusicButtonPressed
}, {
    src: s_MusicButtonOff
}, {
    src: s_MusicOffButtonPressed
}, {
    src: s_new
}, {
    src: s_NextButton
}, {
    src: s_NextButtonPressed
}, {
    src: s_NextLevelButton
}, {
    src: s_NextLevelButtonPressed
}, {
    src: s_note_paper_price
}, {
    src: s_Note_paper_shop
}, {
    src: s_note_start
}, {
    src: s_note_start_pressed
}, {
    src: s_Pan1
}, {
    src: s_Pan2
}, {
    src: s_Pan3
}, {
    src: s_Pan4
}, {
    src: s_pause_button
}, {
    src: s_pause_button_pressed
}, {
    src: s_Pencil_shavings
}, {
    src: s_ResetButton
}, {
    src: s_ResetButton2
}, {
    src: s_ResetButton2_pressed
}, {
    src: s_ResetButtonPressed
}, {
    src: s_setting_button
}, {
    src: s_setting_button_pressed
}, {
    src: s_shop_bg_paper
}, {
    src: s_TimeTag
}, {
    src: s_TitleBg
}, {
    src: s_tutorial_button
}, {
    src: s_tutorial_button_pressed
}, {
    src: s_WaitIcon
}, {
    src: s_win_Bg
}, {//music
    src: s_bgMusic_mp3
}, {
    src: s_buttonEffect_wav
}, {
    src: s_failEffect_wav
}, {
    src: s_fillEffect_wav
}, {
    src: s_successEffect_wav
}, {
    src: s_cheersEffect_wav
}, {//ccbi
    src: s_logo_ccbi
}, {
    src: s_mainMenu_ccbi
}, {
    src: s_mainMenuRing_ccbi
}, {
    src: s_selectLevel_ccbi
}, {
    src: s_level_ccbi
}, {
    src: s_pauseRing_ccbi
}, {
    src: s_levelWin_ccbi
}, {
    src: s_levelFail_ccbi
}, {
    src: s_levelEnd_ccbi
}, {//font
    src: s_FontEng
}, {
    src: s_FontEng_fnt
}]
